package com.sg.xy.dao;

import com.sg.xy.pojo.AuthCode;
import org.springframework.data.jpa.repository.JpaRepository;

public interface CodeDao extends JpaRepository<AuthCode,Long> {

    AuthCode findFirstByEmailOrderByCreatetimeDesc(String email);

}
